﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Input;

namespace Eniux.Windows.Dock
{
    /// <summary>
    /// Panel命令组
    /// </summary>
    public sealed class PaneCommands
    {
        #region 变量

        static object syncRoot = new object();

        /// <summary>
        /// 停靠命令
        /// </summary>
        private static RoutedUICommand dockCommand = null;
        
        #endregion

        #region MyRegion

        /// <summary>
        /// 获取停靠命令
        /// </summary>
        public static RoutedUICommand Dock
        {
            get
            {
                lock (syncRoot)
                {
                    if (null == dockCommand)
                    {
                        dockCommand = new RoutedUICommand("Dock", "Dock", typeof(PaneCommands));
                    }
                }
                return dockCommand;
            }
        }
        
        #endregion
    }
}
